<?php
namespace app\common\model;
use think\Model;
use fast\Cols;
class Province extends Model
{
	protected $pk = 'itemid';
	public static function init(){
		self::event('after_insert', function($row){
		});
		self::event('after_update', function($row){
		});
		self::event('after_delete', function($row){
		});
	}
	public function getCountValue($value){
		$count = [0=>"否",1=>"是",];
		return $count[$value];
	}
	public function student(){
		return $this->hasMany('Student','provinceid','itemid');
	}
	}
?>
